-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replaced TinyMCE7 with TinyMCE6 #2
Conversation
Awesome, thank you. I would like to also incorporate these fixes to upstream bugs introduced by the tiny7 upgrade: And possibly incorporate changes from magefan/module-wysiwyg-advanced@master...ivanhrytsaim:module-wysiwyg-advanced:12062-TinyMCE-support-upgrade to enable the font size option (also an upstream regression with tiny7). |
done
but where should I put that file? I can't find anything related to that code in our repo |
I'll investigate that later -- either it's hiding somewhere in the core WYSIWYG code, or core doesn't initialize these settings at all currently. |
I found where core handles that config: \Magento\Cms\Model\Wysiwyg\DefaultConfigProvider::getConfig Possibly related test config: https://github.com/mage-os/mageos-magento2/blob/2.4-develop/app/code/Magento/Cms/Test/Mftf/Section/TinyMCESection/TinyMCESection.xml (although we don't use the MFTF test suite ourselves) |
it could be this file: https://github.com/mage-os/mageos-magento2/blob/2.4-develop/app/code/Magento/Ui/view/base/web/js/form/element/wysiwyg.js and https://github.com/fballiano/mageos-ryan/blob/18dd197b5b9866faab510d61432e3ffd1b53bd4a/lib/web/mage/adminhtml/wysiwyg/tiny_mce/tinymceAdapter.js#L4 but I don't have the skills and the tools at the moment to dig more. I'm not sure we should block this to add this fix/feature |
It should probably be a separate PR either way. We can process this as-is. Thanks Fabrizio! |
The Tiny 6 files look good to me. I fixed a typo in the config XML. Unfortunately it's not actually working for me as of yet. I get this in console on loading the editor for a CMS page:
So something isn't wired up. I haven't investigated far enough yet to determine what. This might be specific to Page Builder. It seems to load on product edit. |
Disregard that last! My mistake, had out of date requirejs-config without the updated tinymce reference. Found that on code review, retested, works on Page Builder too now. Going to approve and merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, looks good and checks out on QA.
@rhoerr so sorry about the tag mismatch!! weird! phpstorm changes the closing tags automatically 🧐 |
I couldn't test an installation with this but I know for sure tiny6 is compatible with tiny7 (did the same tests for my own projects)